package core

import (
	"gitee.com/gopher2011/gin"
	"gitee.com/gopher2011/litemall/router"
)

func init() {
	r := gin.New()
	// 跨域
	//r.Use(middleware.Cors())

	//Router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))

	// 方便统一添加路由组前缀 多服务器上线使用
	//PublicGroup := r.Group("")
	//{
	//	router.Base(PublicGroup) // 注册基础功能路由 不做鉴权
	//}
	PrivateGroup := r.Group("/admin")
	{
		router.Address(PrivateGroup)
		router.Advertise(PrivateGroup)
	}

}
